package com.kitty.game.luoshu.service;

import com.kitty.game.luoshu.model.Luoshu;
import org.nutz.dao.Cnd;
import org.nutz.dao.Condition;
import org.nutz.dao.Dao;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LuoshuService {

  
  private static final String LOG_DATE_FORMAT = "yyyy-MM-dd HH:mm";
  
  @Autowired
  Dao dao;
  
  public Luoshu getLuoshudata(int role_id) {
    Luoshu luoshu = (Luoshu)this.dao.fetch(Luoshu.class, (Condition)Cnd.where("role_id", "=", Integer.valueOf(role_id)));
    return luoshu;
  }
}
